<?php
namespace App\Models\Entity\wxbox;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * 应用列表

 * @Entity()
 * @Table(name="wxapp")
 * @uses      Wxapp
 */
class Wxapp extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var int $wxid 
     * @Column(name="wxid", type="integer")
     * @Required()
     */
    private $wxid;

    /**
     * @var int $appid 
     * @Column(name="appid", type="integer")
     * @Required()
     */
    private $appid;

    /**
     * @var int $type 0,开放使用，1vip使用
     * @Column(name="type", type="integer", default=0)
     */
    private $type;

    /**
     * @var int $status 1开启0关闭
     * @Column(name="status", type="smallint", default=1)
     */
    private $status;

    /**
     * @var int $addtime 
     * @Column(name="addtime", type="integer")
     * @Required()
     */
    private $addtime;

    /**
     * @var int $updatetime 
     * @Column(name="updatetime", type="integer", default=0)
     */
    private $updatetime;

    /**
     * @var string $rename 
     * @Column(name="rename", type="string", length=30)
     * @Required()
     */
    private $rename;

    /**
     * @var int $indexnum 
     * @Column(name="indexnum", type="integer", default=0)
     */
    private $indexnum;

    /**
     * @var string $jumpurl 
     * @Column(name="jumpurl", type="string", length=30, default="")
     */
    private $jumpurl;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setWxid(int $value): self
    {
        $this->wxid = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setAppid(int $value): self
    {
        $this->appid = $value;

        return $this;
    }

    /**
     * 0,开放使用，1vip使用
     * @param int $value
     * @return $this
     */
    public function setType(int $value): self
    {
        $this->type = $value;

        return $this;
    }

    /**
     * 1开启0关闭
     * @param int $value
     * @return $this
     */
    public function setStatus(int $value): self
    {
        $this->status = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setAddtime(int $value): self
    {
        $this->addtime = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setUpdatetime(int $value): self
    {
        $this->updatetime = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setRename(string $value): self
    {
        $this->rename = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setIndexnum(int $value): self
    {
        $this->indexnum = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setJumpurl(string $value): self
    {
        $this->jumpurl = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getWxid()
    {
        return $this->wxid;
    }

    /**
     * @return int
     */
    public function getAppid()
    {
        return $this->appid;
    }

    /**
     * 0,开放使用，1vip使用
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * 1开启0关闭
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @return int
     */
    public function getAddtime()
    {
        return $this->addtime;
    }

    /**
     * @return int
     */
    public function getUpdatetime()
    {
        return $this->updatetime;
    }

    /**
     * @return string
     */
    public function getRename()
    {
        return $this->rename;
    }

    /**
     * @return int
     */
    public function getIndexnum()
    {
        return $this->indexnum;
    }

    /**
     * @return string
     */
    public function getJumpurl()
    {
        return $this->jumpurl;
    }

}
